//
//  FileHelper.h
//  Common
//
//  Created by leo on 13-4-8.
//
//

#import <Foundation/Foundation.h>

@interface FileHelper : NSObject

+ (NSString*) getDocumentDirectory;

+ (id) decodeContentFromFile:(NSString*)pFileName;

+ (BOOL) encodeContent:(id)pContent toFile:(NSString*)pFileName;

+ (void) createFolderIfNotExistForFile:(NSString*)pFileName;

+ (BOOL) isExistFile:(NSString *)pFileName;

+ (BOOL) saveFileName:(NSString *)fName fileData:(NSData *)data toPath:(NSString *)path;

+ (BOOL) deleteFileWitPath:(NSString *)filePath;

@end
